package cn.itcast.fallback;

import cn.itcast.clients.OrderClients;
import cn.itcast.entity.Order;
import cn.itcast.entity.Result;
import cn.itcast.entity.Room;
import cn.itcast.VO.OrderUserVO;
import feign.hystrix.FallbackFactory;

public class OrdersClientFallBackFactory implements FallbackFactory<OrderClients> {
    @Override
    public OrderClients create(Throwable throwable) {
        return new OrderClients(){

            @Override
            public Result getOrderDay(Long roomId) {
                return null;
            }

            @Override
            public Result<OrderUserVO> getOrderDayByDate(Long userId) {
                return null;
            }


            @Override
            public Result<Order> getOrderById(Room room) {
                return null;
            }

        };
    }
}
